package com.dhemery.mack.adapters.tests;

import org.eclipse.jface.resource.ImageDescriptor;

import com.dhemery.mack.adapters.ImageDescriptorSource;

public class FakeConstantImageDescriptorSource implements ImageDescriptorSource {

	private final ImageDescriptor imageDescriptor;

	public FakeConstantImageDescriptorSource(ImageDescriptor theImageDescriptorToReturn) {
		imageDescriptor = theImageDescriptorToReturn;
	}

	public ImageDescriptor getImageDescriptor(String imagePath) {
		return imageDescriptor;
	}

}
